home *** CD-ROM | disk | FTP | other *** search
- -- background: 2814 from stack: in
- -- bmap block id: 6856
- -- flags: 0000
- -- background id: 0
- -- name:
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=367 top=100 right=145 bottom=447
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: gun button
- ----- HyperTalk script -----
- -- © Copyright 1987, Prophecy Software. All rights reserved.
- -- This script is proprietary information of Prophecy Software,
- -- and may not be copied or distributed by any means withour the
- -- written permission of the Author.
-
-
- on mouseUp
- Global bullets
- Global monster_on
- Global monster_room
- global monster_dead
- global dead_monster_on
- global monster_stalk
- global score
-
- if bullets > 0 then
- play "Gun"
- put bullets -1 into bullets
- if bullets is 2 then show bkgnd button "bullet 1"
- if bullets is 1 then show bkgnd button "bullet 2"
- if bullets is 0 then show bkgnd button "bullet 3"
- if monster_on is true and monster_dead is 0 then
- play "Scream"
- get the id of this card
- put it into monster_room
- put true into dead_monster_on
- put 1 into monster_dead
- put false into monster_stalk
-
- get the short name of this card
- if offset("water", it) is not 0 then
- put 2 into monster_dead
- put "card 1" into monster_room
- put false into monster_on
- put 30 + score into score
- end if
- put 20 + score into score
- get the id of this card
- go to it
- if monster_dead is 1 then DeadMonster
- end if
-
- -- test for shooting gun in severly cracked room
- get the short name of this card
- if it is "crash" then
- global excuse
- go to card "no crash next"
- play "Scream" tempo 1 g
- put "Not a smart move." into excuse
- visual effect dissolve
- go to card end
- end if
-
- if it is "crash2" then
- global excuse
- go to card "no crash2 next"
- play "Scream" tempo 1 g
- put "Not a smart move." into excuse
- visual effect dissolve
- go to card end
- end if
-
- if it is "ceiling" then
- global fallen_ceiling
- put true into fallen_ceiling
- go to card id 10774
- end if
- end if
- end mouseUp
-
-
-
- -- part 18 (button)
- -- low flags: 80
- -- high flags: 0001
- -- rect: left=375 top=152 right=172 bottom=395
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: bullet 1
-
-
- -- part 19 (button)
- -- low flags: 80
- -- high flags: 0001
- -- rect: left=394 top=152 right=172 bottom=410
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: bullet 2
-
-
- -- part 20 (button)
- -- low flags: 80
- -- high flags: 0001
- -- rect: left=410 top=152 right=172 bottom=428
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: bullet 3
-
-
- -- part 25 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=370 top=51 right=103 bottom=448
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- global lamp_on
-
- if lamp_on is false then
- put true into lamp_on
- visual effect dissolve
- pop card
- else
- put false into lamp_on
- push card
- goto card 22061
- end if
- end mouseUp
-
-
-
- -- part 26 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=370 top=51 right=103 bottom=448
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- global lamp_on
-
- if lamp_on is false then
- put true into lamp_on
- visual effect dissolve
- pop card
- else
- put false into lamp_on
- push card
- go to card id 22061
- end if
- end mouseUp
-
-